package com.worthtech.billportal.bean;

/**
 * CsPosCommercialId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsPosCommercialId implements java.io.Serializable {

	// Fields

	private String wtCommerMercode;
	private String wtCommerTrmcode;

	// Constructors

	/** default constructor */
	public CsPosCommercialId() {
	}

	/** full constructor */
	public CsPosCommercialId(String wtCommerMercode, String wtCommerTrmcode) {
		this.wtCommerMercode = wtCommerMercode;
		this.wtCommerTrmcode = wtCommerTrmcode;
	}

	// Property accessors

	public String getWtCommerMercode() {
		return this.wtCommerMercode;
	}

	public void setWtCommerMercode(String wtCommerMercode) {
		this.wtCommerMercode = wtCommerMercode;
	}

	public String getWtCommerTrmcode() {
		return this.wtCommerTrmcode;
	}

	public void setWtCommerTrmcode(String wtCommerTrmcode) {
		this.wtCommerTrmcode = wtCommerTrmcode;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsPosCommercialId))
			return false;
		CsPosCommercialId castOther = (CsPosCommercialId) other;

		return ((this.getWtCommerMercode() == castOther.getWtCommerMercode()) || (this
				.getWtCommerMercode() != null
				&& castOther.getWtCommerMercode() != null && this
				.getWtCommerMercode().equals(castOther.getWtCommerMercode())))
				&& ((this.getWtCommerTrmcode() == castOther
						.getWtCommerTrmcode()) || (this.getWtCommerTrmcode() != null
						&& castOther.getWtCommerTrmcode() != null && this
						.getWtCommerTrmcode().equals(
								castOther.getWtCommerTrmcode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getWtCommerMercode() == null ? 0 : this.getWtCommerMercode()
						.hashCode());
		result = 37
				* result
				+ (getWtCommerTrmcode() == null ? 0 : this.getWtCommerTrmcode()
						.hashCode());
		return result;
	}

}